package dto

import "time"

type ParamClickReserve struct {
	CampusId    int       `json:"campus_id" gorm:"campus_id"`                       //校区id
	BuildingId  int       `json:"building_id" gorm:"building_id"`                   //教学楼id
	ClassroomId int       `json:"classroom_id" gorm:"classroom_id"`                 //教室id
	Timeslot    int       `json:"timeslot" gorm:"timeslot" binding:"oneof=1 2 3 4"` //选择预约时长（只能是1,2,3,4）
	StartTime   time.Time `json:"start_time"`                                       //预约开始时间
}

// ClickReserve 返回符合条件的位置
type ClickReserve struct {
	ID          int    `json:"id" gorm:"primarykey" db:"id"`                       // 预约id
	SeatNumber  string `json:"seat_number" gorm:"seat_number" db:"seat_number"`    // 预约座位号
	SeatReserve int    `json:"seat_reserve" gorm:"seat_reserve" db:"seat_reserve"` // 座位状态
}
